import service from '@/utils/request'

export const getCommodityInfoApi = (id: number) => {
  return service.get('/gps/pay/goods/info/' + id)
}
export const useCommoditySubmitApi = (dataForm: any) => {
  if (dataForm.createTime) {
    return service.put('/gps/pay/goods/update', dataForm)
  } else {
    return service.post('/gps/pay/goods/save', dataForm)
  }
}

//退款
export const refundApi = (data) => {
  return service.post('/gps/pay/goods/refund', data)
}
//删除
export const deleteHandleApi = (id) => {
  return service.delete(`/gps/pay/deleteGoodsOrder/${id}`)
}

